﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace THE_WIND_RISES.Common.Domans.Produce.Order
{
    /// <summary>
    /// 销售订单
    /// </summary>
    public class Orders:Entity
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        public int OrdersId { get; set; }

        /// <summary>
        /// 订单编号
        /// </summary>
        public string OrdersNo { get; set; }

        /// <summary>
        /// 订单名称
        /// </summary>
        public string OrdersName { get; set; }

        /// <summary>
        /// 订单类型
        /// </summary>
        public int OrdersTypeId { get; set; }

        /// <summary>
        /// 所属项目
        /// </summary>
        public int ProjectId { get; set; }

        /// <summary>
        /// 订单备注
        /// </summary>
        public string OrdersRemark { get; set; }

        /// <summary>
        /// 客户
        /// </summary>
        public int CustomerId { get; set; }

        /// <summary>
        /// 订单金额
        /// </summary>
        public string OrdersPrice { get; set; }

        /// <summary>
        /// 币种
        /// </summary>
        public string Currency { get; set; }

        /// <summary>
        /// 预收款金额
        /// </summary>
        public string PrePrice { get; set; }

        /// <summary>
        /// 订单开始时间
        /// </summary>
        public DateTime OrdersKTime { get; set; }

        /// <summary>
        /// 订单结束时间
        /// </summary>
        public DateTime OrdersJTime { get; set; }

        /// <summary>
        /// 签订时间
        /// </summary>
        public DateTime SignedTime { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public bool OrdersState { get; set; }

        /// <summary>
        /// 计税类型
        /// </summary>
        public string TaxType { get; set; }

        /// <summary>
        /// 税率
        /// </summary>
        public string Rate { get; set; }

        /// <summary>
        /// 开票金额
        /// </summary>
        public string BillingPrice { get; set; }

        /// <summary>
        /// 已收款金额
        /// </summary>
        public string CollectedPrice { get; set; }

        /// <summary>
        /// 销售员
        /// </summary>
        public string Salesman { get; set; }

        /// <summary>
        /// 销售部门
        /// </summary>
        public int DepartmentId { get; set; }

        /// <summary>
        /// 审批状态
        /// </summary>
        public int ApprovalStatusDD { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelete { get; set; }
    }
}
